package com.example.javabasic.other;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @description 节点
 * @Author Lin FuYuan
 * @date 2021/4/15
 */
@Getter
@Setter
public class Node implements Serializable {
    private String name;
    private Integer cengji;
    private String value;
    private Integer sort;
    private List<Node> childs = new ArrayList<>();
    public Node(String name,Integer cengji,Integer sort){
        this.name = name;
        this.cengji = cengji;
        this.sort = sort;
    }

}
